package com.hjj.concurrence.syncMethod.t8;

public class SubClass extends MainClass {
    @Override
    public synchronized void operateMainMethod() {
        while (i > 0) {
            i--;
            System.out.println("sub print i=" + i);
            super.operateMainMethod();
        }
    }

    public static void main(String[] args) {
        new MyThread().start();
    }
}
